import com.ty.serivce.UserSerivceimpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyText {
    public static void main(String[] args) {

        ApplicationContext context =  new ClassPathXmlApplicationContext("beans.xml");
     UserSerivceimpl userSerivceimpl = (UserSerivceimpl) context.getBean("userSerivce");

     userSerivceimpl.text();

    }
}
